package ynu.lcy.dao;


import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import ynu.lcy.entity.Business;
import ynu.lcy.entity.Cart;

import java.util.List;

@Repository
public interface ICartDao extends JpaRepository<Cart,Long> {
    Cart findCartByBusinessIdAndUserId(Long businessId, Long userId);
    List<Cart> findAllByUserIdIs(Long userId);
}
